import packageObject from '../../package.json'

export const PACKAGE_NAME = packageObject.name

export const PLACEHOLDER_INPUT = "请输入";

export const PLACEHOLDER_SELECT = "请选择";

// 运单详情-静态运单信息
export const WAYBILL_LABEL = [
  { title: "运单状态", key: "status" },
  { title: "业务类型", key: "businessType" },
  { title: "任务号", key: "taskNo" },
  { title: "运输方式", key: "shippingType" },
  { title: "是否入库", key: "isInstock" },
  { title: "是否出库", key: "isOutstock" },
  { title: "制单人", key: "createuser" },
  { title: "制单时间", key: "createdate" },
  { title: "备注", key: "remark" },
  { title: "调度单时间", key: "createdate" },
  { title: "预计板车到位时间", key: "carToplaceTime" },
  { title: "最晚到货时间", key: "endTodate" },
  { title: "是否已派道", key: "isLaneAppoint" },
  { title: "是否打印委托书", key: "printPowerAttorney" },
  { title: "是否生成委托书", key: "generatePowerAttorney" },
  { title: "契约锁状态", key: "sdkState" },
  { title: "是否作废", key: "isCancel" }
];

// 运单详情-承运信息
export const WAYBILL_CARRIAGE_LABEL = [
  { title: "承运商", key: "carriersName" },
  { title: "二级运输单位", key: "carriersNameTwo" },
  { title: "三级运输单位", key: "carriersNameThree" },
  { title: "板车号", key: "carName" },
  { title: "司机", key: "driverName" },
  { title: "电话", key: "driverTelphone" },
  { title: "委托类型", key: "proxyType" },
  { title: "调度单类型", key: "dispatchType" },
  { title: "是否锁定", key: "isLock" },
  { title: "车挂号", key: "carRegistration" },
  { title: "是否甩挂", key: "isSwingHang" },
  { title: "铁路班次", key: "railwayNum" },
  { title: "船名", key: "shipName" },
  { title: "船次", key: "shipNum" }
];

// 运单详情-时间轴
export const WAYBILL_TIMELINE_LIST = [
  // { time: "2021-10-10 14:10", title: "运单创建", key: "createDate" },
  { time: "", title: "VMS出库时间", key: "vmsDate" },
  { time: "", title: "调度时间", key: "schedulingDate" },
  { time: "", title: "车辆到位时间", key: "arriveTime" },
  { time: "", title: "装车开始时间", key: "startDate" },
  { time: "", title: "装车完成时间", key: "trueDate" },
  { time: "", title: "卸货时间", key: "unloadingDate" },
  { time: "", title: "运单完成时间", key: "finishDate" }
];

// 订单表头字典
export const ORDER_COLUMNS_MAP = [
  { title: "订单编号", dataIndex: "no", key: "no" },
  { title: "货物详情", dataIndex: "details", key: "details" },
  { title: "发货人", dataIndex: "name", key: "name" },
  { title: "订单状态", dataIndex: "status", key: "status" },
  { title: "车牌号", dataIndex: "carNo", key: "carNo" },
  { title: "司机", dataIndex: "driver", key: "driver" },
  { title: "创建时间", dataIndex: "createTime", key: "createTime" },
  { title: "调度时间", dataIndex: "dispatchTime", key: "dispatchTime" },
  { title: "CRM预配", dataIndex: "CRM", key: "CRM" },
  { title: "加急", dataIndex: "urgent", key: "urgent" },
  {
    title: "400加急",
    dataIndex: "fourHundredUrgent",
    key: "fourHundredUrgent"
  },
  { title: "是否公路入库", dataIndex: "inStore", key: "inStore" },
  { title: "授信", dataIndex: "credit", key: "credit" },
  { title: "扣款", dataIndex: "deduction", key: "deduction" },
  { title: "目的省份", dataIndex: "destPro", key: "destPro" },
  { title: "目的城市", dataIndex: "destCity", key: "destCity" }
];

// 订单状态
export const ORDER_STATUE_LIST = [
  { title: "未调度", key: 1 },
  { title: "已调度", key: 3 }
];

// 订单详情-时间轴
export const ORDER_TIMELINE_LIST = [
  { time: "", title: "订单创建时间", key: "createDate" },
  { time: "", title: "VMS出库时间", key: "vmsDate" },
  { time: "", title: "车辆到位时间", key: "arriveTime" },
  { time: "", title: "卸货时间", key: "unloadingDate" }
];

// 订单详情-承运信息
export const CARRIAGE_LABEL = [
  { title: "板车号", key: "carName" },
  { title: "承运商名称", key: "carriers" },
  { title: "主司机姓名", key: "masterDriver" },
  { title: "主司机电话", key: "masterPhone" },
  { title: "副司机姓名", key: "deputyDriver" },
  { title: "副司机电话", key: "deputyDriverPhone" },
  { title: "承运商编码", key: "carriersCode" },
  { title: "计划承运商", key: "planCarriers" },
  { title: "计划承运板车", key: "planCarriersCar" },
  { title: "二级运输单位编码", key: "carriersCode2" },
  { title: "二级运输单位名称", key: "carriersName2" },
  { title: "三级运输单位编码", key: "carriersCode3" },
  { title: "三级运输单位名称", key: "carriersName3" },
  { title: "船次", key: "shipNum" },
  { title: "船名", key: "shipName" },
  { title: "铁路班次", key: "railwayNum" },
  { title: "委托书号", key: "shippingCode" },
  { title: "VMS委托书号", key: "vmsShippingCode" },
  { title: "托运单位", key: "shipperName" },
  { title: "备注", key: "remark" }
];

// 订单详情-静态订单信息字段
export const ORDER_LABEL = [
  { title: "货物名称", key: "carTypeName" },
  { title: "货物类型", key: "goodsType" },
  { title: "货物规格", key: "shopSize" },
  { title: "装货地点", key: "loadingPlace" },
  { title: "装车联系人", key: "truckUser" },
  { title: "装车联系电话", key: "truckTelphone" },
  { title: "卸货地点", key: "dischargePlace" },
  { title: "收货人", key: "person" },
  { title: "收货人电话", key: "phone" },
  { title: "CRM预配", key: "crm" },
  { title: "加急", key: "intensify" },
  { title: "400加急", key: "intensify400" },
  { title: "是否公路入库", key: "isRoadInStorage" },
  { title: "授信", key: "credit1" },
  { title: "扣款", key: "isPurchase1" },
  { title: "目的省份", key: "toProvince" },
  { title: "目的城市", key: "toCity" },
  { title: "目的县区", key: "toCounty" },
  { title: "收货地址", key: "address" },
  { title: "车型", key: "carTypeName" },
  { title: "成品库编码", key: "warehouseCode" },
  { title: "成品库", key: "warehouse" },
  { title: "VIN", key: "vin" },
  { title: "商品车号", key: "goodsNum" },
  { title: "颜色", key: "color" },
  { title: "款式", key: "style" },
  { title: "配置", key: "configure" },
  { title: "出库", key: "isOutstock" },
  { title: "提车备注", key: "remark" },
  { title: "收货商", key: "consigneeName" },
  { title: "业务分类", key: "businessClass" },
  { title: "发运计划单号", key: "transPlanNo" },
  { title: "计划发运时间", key: "shipmentDate" },
  { title: "分段", key: "splitNo" },
  { title: "锁定状态", key: "lockStatus" },
  { title: "业务类型", key: "businessType" },
  { title: "状态", key: "status" },
  { title: "作废", key: "isDel" },
  { title: "起运省", key: "fromProvince" },
  { title: "起运市", key: "fromCity" },
  { title: "起运县区", key: "fromCounty" },
  { title: "VMS出库单号", key: "vmsCode" },
  { title: "经销商名称", key: "dealerName" },
  { title: "经销商要求到达日期", key: "arriveDate" },
  { title: "加急车提报时间", key: "intensifyCarTime" },
  { title: "运输方式", key: "transitStyle" },
  { title: "T+N", key: "tn" },
  { title: "打散调度号", key: "disperseCode" },
  { title: "分段时间", key: "splitNoTime" },
  { title: "扣款时间", key: "purchaseTime" },
  { title: "调整运输方式", key: "upTransitStyle" },
  { title: "客户下单编号", key: "customerNumber" },
  { title: "营销状态", key: "marketingStatus" },
  { title: "调度状态", key: "dispatchStatus" },
  { title: "整板计划单号", key: "allPlanCode" },
  { title: "预配调度单号", key: "preWaybillCode" },
  { title: "是否可配板", key: "isDistributionBoard" },
  { title: "是否加急", key: "urgent" },
  { title: "批次号", key: "batchCode" },
  { title: "国家", key: "country" },
  { title: "是否锁定", key: "isLock" },
  { title: "是否作废", key: "isDel" },
  { title: "是否入库", key: "isInStorage" },
  { title: "出库顺序", key: "sequence" },
  { title: "托运商", key: "shippers" },
  { title: "调度备注", key: "disperseRemark" },
  { title: "重要程度", key: "importDegree" },
  { title: "保密", key: "secrecy" },
  { title: "单号", key: "code" },
  { title: "零担类型", key: "lessType" },
  { title: "单据时间", key: "codeTime" },
  { title: "客户审核时间", key: "customerTime" },
  { title: "客户审核人", key: "customerPerson" },
  { title: "调度审核时间", key: "dispersExamineTime" },
  { title: "调度审核人", key: "fourHundredUrgent" },
  { title: "货品准备完毕时间", key: "shopOkTime" },
  { title: "要求收车时间", key: "requireCarTime" },
  { title: "审核拒绝原因", key: "noExamineReason" },
  { title: "收车单位", key: "pushCarDepartmrnt" },
  { title: "起运库区", key: "storage" },
  { title: "装车具体地址", key: "pretendAgree" },
  { title: "收货具体地址", key: "detailedAddress" },
  { title: "其他特殊要求", key: "specialReason" },
  { title: "车辆用途", key: "carPurpose" },
  { title: "商品车尺寸", key: "shopCarSize" },
  { title: "量产", key: "batchProduction" },
  { title: "能否启动", key: "isStart" },
  { title: "有无牌照或临牌", key: "credit" },
  { title: "非工作日能否收车", key: "notWorkCar" },
  { title: "夜间能否收车", key: "isnightRequire" },
  { title: "车辆估价", key: "carPrice" },
  { title: "特殊防护", key: "protectSpecial" },
  { title: "付款", key: "payment" },
  { title: "开票", key: "openTicket" },
  { title: "订单来源", key: "orderSource" },
  { title: "单据编号", key: "orderCode" },
  { title: "研发订单号", key: "researchOrder" },
  { title: "是否有特殊防护", key: "haveProtectSpecial" },
  { title: "零担订单模块", key: "lessModel" },
  { title: "托运商编码", key: "shipperCode" },
  { title: "创建人ID", key: "createPersonId" },
  { title: "客户审核ID", key: "customerReviewID" },
  { title: "调度审核ID", key: "dispatchReviewID" },
  { title: "起运库编码", key: "storageCode" },
  { title: "审核状态", key: "auditStatus" },
  { title: "里程", key: "mileage" },
  { title: "起运成品库", key: "shipFinishName" },
  { title: "加急单生成时间", key: "intensifyCodeTime" },
  { title: "是否扣款", key: "isPurchase" },
  { title: "入库时间", key: "createTime" },
  { title: "最早应发货日期", key: "earliestSendOutDate" },
  { title: "最晚应发货日期", key: "latestSendOutDate" },
  { title: "最早应到货日期", key: "earliestArrivalDate" },
  { title: "最晚应到货日期", key: "latestArrivalDate" },
  { title: "扣款日期", key: "deductionDate" },
  { title: "是否已手动扣款", key: "manualDeduction" },
  { title: "锁定解锁时间", key: "lockUnlockTime" },
  { title: "锁定解锁原因", key: "lockUnlockReason" },
  { title: "锁定解锁人", key: "lockUnlockPerson" },
  { title: "是否已生成调度单", key: "generateWaybill" },
  { title: "合作方订单号", key: "partnerOrderNo" },
  { title: "订单录入时间", key: "orderEntryTime" },
  { title: "开单时间", key: "billingTime" },
  { title: "派车时间", key: "sendCarTime" },
  { title: "装运时间", key: "shipmentTime" },
  { title: "收货商名称", key: "consigneeName" },
  { title: "车大类", key: "category" },
  { title: "目的库", key: "toStorageName" },
  { title: "收货商地址", key: "consigneeAddress" },
  { title: "起运地编码", key: "fromCountyCode" },
  { title: "目的地编码", key: "toCountyCode" },
  { title: "目的库编码", key: "toStorageCode" },
  { title: "委托类型", key: "proxyType" },
  { title: "所属基地", key: "affiliatedBase" },
  { title: "始发库", key: "originaWarehouse" },
  { title: "下推配板", key: "pushDownPlate" },
  { title: "车辆状态", key: "state" },
  { title: "车型编码", key: "carTypeCode" },
  { title: "是否授信", key: "credit" },
  { title: "是否出库", key: "isOutstock" }
];

// 轿运订单tab页签
export const ORDER_TAB = [
  { title: "全部" },
  { title: "业外" },
  { title: "调度" },
  { title: "出口" },
  { title: "调拨" },
  { title: "零担" },
  { title: "前端" },
  { title: "干线" },
  { title: "末端" }
];

// 轿运运单tab页签
export const WAYBILL_TAB = [
  { title: "全部" },
  { title: "待装车" },
  { title: "在途" },
  { title: "已卸车" },
  { title: "已完成" },
  { title: "空驶订单" },
  { title: "延期运单" }
];

// 货物类型
export const GOODS_TYPE = [{ title: "商品汽车", key: 1 }];

// 业务类型
export const BUSINESS_TYPE = [
  { title: "调度", key: 1 },
  { title: "出口", key: 2 },
  { title: "调拨", key: 3 },
  { title: "前端", key: 4 },
  { title: "干线", key: 5 },
  { title: "末端", key: 6 },
  { title: "空驶", key: 7 }
];

// 运输方式
export const TRANSIT_STYLE = [
  { title: "公路", key: 1 },
  { title: "铁路", key: 2 },
  { title: "水路", key: 3 },
  { title: "自提", key: 4 }
];

// 所属性质
export const BELONG_NATURE_LIST = [
  { title: "自有车辆", key: 1 },
  { title: "社会车辆", key: 2 },
  { title: "租赁车辆", key: 3 },
  { title: "挂靠车辆", key: 4 }
];

// 车辆状态
export const CAR_STATUE_LIST = [
  { title: "正常", key: 1 },
  { title: "异常", key: 2 }
];

// 车辆类型(能源)
export const CAR_ENERGY_TYPE_LIST = [
  { title: "柴油", key: 1 },
  { title: "汽油", key: 2 },
  { title: "LNG", key: 3 },
  { title: "CNG", key: 4 },
  { title: "氢能", key: 5 },
  { title: "电动(充电)", key: 6 },
  { title: "电动(换电)", key: 7 },
  { title: "油电混动", key: 8 }
];

// 车辆类型(用途);
export const CAR_USE_TYPE_LIST = [
  { title: "普货", key: 1 },
  { title: "冷链", key: 2 },
  { title: "危化", key: 3 },
  { title: "商砼", key: 4 },
  { title: "轿运", key: 5 },
  { title: "其他", key: 6 }
];

// 驱动形式
export const PRE_DRIVING_FORM = [
  { title: 2, key: 2 },
  { title: 4, key: 4 },
  { title: 6, key: 6 },
  { title: 8, key: 8 },
  { title: 10, key: 10 }
];
export const SUF_DRIVING_FORM = [
  { title: 4, key: 4 },
  { title: 6, key: 6 },
  { title: 8, key: 8 },
  { title: 10, key: 10 }
];

// 车辆类型(营运)
export const OPER_LIST = [
  { title: "营运", key: 1 },
  { title: "公务用车", key: 2 }
];

// 是&否
export const YES_OR_NO_LIST = [
  { title: "是", key: 1 },
  { title: "否", key: 2 }
];

//账号管理
export const ACCOUNT_STATUE_LIST = [
  { title: "正常", key: 1 },
  { title: "异常", key: 2 }
];

// 导入文件
export const IMPORT_FILE_PRO = {
  fleetManage: [
    "1.车辆数据导入后，以车架号（VIN号）为标准与现有数据进行对照，如出现新车架号则新增车辆，如车架号已经存在则对该车信息进行更新。",
    "2.数据导入后对字段合法性进行校验，校验失败会导致该车数据无法导入。",
    "3.特殊情况下，部分字段无法进行变更，请注意系统给出的提示。",
    "4.模版导入最大支持3000条数据，超出数据将无法导入。"
  ],
  driverManage: [
    "1.司机数据导入后，以身份证号为标准与现有数据进行对照，如出现新身份证号则新增司机，如身份证号已经存在，则对该司机信息进行更新。",
    "2.数据导入后对字段合法性进行校验，校验失败会导致该车数据无法导入。",
    "3.特殊情况下，部分字段无法进行变更，请注意系统给出的提示。",
    "4.模板导入最大支持3000条数据，超出数据将无法导入。"
  ],
  trailerManage: [
    "1.车辆数据导入后，以车架号（VIN号）为标准与现有数据进行对照，如出现新车架号则新增车辆，如车架号已经存在则对该车信息进行更新。",
    "2.数据导入后对字段合法性进行校验，校验失败会导致该车数据无法导入。",
    "3.特殊情况下，部分字段无法进行变更，请注意系统给出的提示。",
    "4.模版导入最大支持3000条数据，超出数据将无法导入。"
  ]
};
// 常量
export const TITLE_OBJECT = { add: "新增", edit: "编辑", view: "详情" };
//查看新增编辑
export const ACCOUNT_ROLE_LIST = [
  { title: "系统管理员", key: 1 },
  { title: "车队长", key: 2 },
  { title: "调度员", key: 3 },
  { title: "安全员", key: 4 }
];

// 企业类型字典表
export const INDUSTRY_TYPE_LIST = [
  { title: "普货", value: 1 },
  { title: "危化", value: 2 },
  { title: "冷链", value: 3 },
  { title: "渣土", value: 4 },
  { title: "商砼", value: 5 },
  { title: "轿运", value: 6 },
  { title: "快递快运", value: 7 },
  { title: "城配", value: 8 }
];

// 证件号码字典表
export const CERTIFICATES = [
  { title: "营业执照", value: 1 },
  { title: "税务登记证", value: 2 }
];

// 车辆tab页
export const CAR_TAB = [
  { title: "全部车辆", num: 999 },
  { title: "任务中", num: 999 },
  { title: "空闲", num: 999 },
  { title: "在线", num: 999 },
  { title: "离线", num: 999 }
];
// 运单列表
export const WAYBILL_TAB_LIST = [
  { title: "全部", num: 999 },
  { title: "在途", num: 999 },
  { title: "返程中", num: 999 },
  { title: "延期", num: 999 }
];
// 司机管理表头
export const DRIVER_COLUMNS_MAP = [
  {
    title: "司机名称",
    dataIndex: "name",
    key: "name",
    fixed: "left"
  },
  {
    title: "手机号",
    dataIndex: "telephone",
    key: "telephone"
  },
  { title: "员工状态", dataIndex: "status", key: "status" },
  { title: "员工类型", dataIndex: "type", key: "type" },
  { title: "所属单位", dataIndex: "departmentId", key: "departmentId" },
  { title: "所属分组", dataIndex: "group", key: "group" },
  { title: "绑定车辆", dataIndex: "vehicleId", key: "vehicleId" }
];
// 司机管理详情  员工类型
export const TYPE = [
  { title: "员工", key: 1 },
  { title: "挂靠", key: 2 },
  { title: "承运", key: 3 }
];
// 转正状态
export const BECOME_STATUS = [
  { title: "已转正", key: 1 },
  { title: "试用期", key: 2 }
];
// 学历
export const EDUCATION = [
  { title: "研究生及以上", key: 1 },
  { title: "本科", key: 2 },
  { title: "高中", key: 3 },
  { title: "大专", key: 4 },
  { title: "初中", key: 7 },
  { title: "中专", key: 8 },
  { title: "小学", key: 9 }
];
// 婚姻情况
export const IS_MARRIAGE = [
  { title: "已婚", key: 1 },
  { title: "未婚", key: 2 }
];
// 员工状态
export const STATUS = [
  { title: "正常", key: 1 },
  { title: "异常", key: 2 }
];
// 准驾车型
export const DRIVING_MOD = [
  { title: "A1", key: 1 },
  { title: "A2", key: 2 },
  { title: "A3", key: 3 },
  { title: "B1", key: 4 },
  { title: "B2", key: 5 },
  { title: "C1", key: 6 },
  { title: "C2", key: 7 },
  { title: "C3", key: 8 },
  { title: "C4", key: 9 },
  { title: "D", key: 10 },
  { title: "E", key: 11 },
  { title: "F", key: 12 }
];
// 司机类型
export const DRIVER_TYPE = [
  { title: "主司机", key: 1 },
  { title: "副司机", key: 2 }
];

// 账号字典集
export const ACCOUNT_MAP = [{ status: ACCOUNT_STATUE_LIST }];

// 司机
export const DRIVER_MAP = [
  { type: TYPE },
  { becomeStatus: BECOME_STATUS },

  { education: EDUCATION },
  { isMarriage: IS_MARRIAGE },
  { status: STATUS },
  { drivingMod: DRIVING_MOD },

  { driverType: DRIVER_TYPE }
];

// 车辆 挂车 管理 字典集
export const CAR_MAP = [
  { isSettleDevice: YES_OR_NO_LIST },
  { purpose: CAR_USE_TYPE_LIST },
  { status: CAR_STATUE_LIST },
  { nature: BELONG_NATURE_LIST },
  { energyType: CAR_ENERGY_TYPE_LIST },
  { operationType: OPER_LIST },
  { isAirsuspension: YES_OR_NO_LIST },
  { isDevice: YES_OR_NO_LIST },
  { allIsDevice: YES_OR_NO_LIST }
];

// 全图监控-车辆列表表头
export const CAR_COLUMNS = [
  { title: "车牌号", key: "carNum", width: 120 },
  { title: "信号状态", key: "runStates", width: 120 },
  { title: "当前车速", key: "speed", width: 120 },
  { title: "主司机", key: "masterName", width: 120 },
  { title: "运单编号", key: "waybillCode", width: 220 },
  { title: "当前位置", key: "addr" },
  { title: "数据时间", key: "createTime" }
];

// 全图监控-运单列表表头
export const MENU_COLUMNS = [
  { title: "运单号", key: "waybillNum", width: 200 },
  { title: "运单状态", key: "status", width: 120 },
  { title: "承运商", key: "carriersName" },
  { title: "运输车辆", key: "carName", width: 120 },
  { title: "主司机", key: "driverName", width: 120 },
  { title: "目的地", key: "county" },
  { title: "是否延期", key: "isDelay", width: 120 },
  { title: "数据时间", key: "createTime" }
];

// 车辆状态
export const CAR_RUN_STATES = {
  1: "在线",
  2: "停车",
  3: "离线",
  4: "未定位"
};

export const STATUS_MAP = {
  1: "未调度",
  3: "已调度"
};

export const STATUS_WAYBILL_MAP = {
  1: "待装车",
  2: "在途",
  3: "已卸车",
  4: "已完成",
  5: "返程中",
  6: "延期订单"
};

// 订单-是和否字典
export const ORDER_YES_OR_NO = [
  { title: "否", key: 1 },
  { title: "是", key: 2 }
];

// 订单-业务分类
export const BUSINESS_CLASS = [
  { title: "业内", key: 1 },
  { title: "业外", key: 2 },
  { title: "零担", key: 3 }
];

// 运单状态
export const WAYBILL_STATUE_LIST = [
  { title: "待装车", key: 1 },
  { title: "在途", key: 2 },
  { title: "已卸车", key: 3 },
  { title: "已完成", key: 4 },
  { title: "返程中", key: 5 },
  { title: "延期", key: 6 }
];

// 运单列表 - 转换数据
export const WAYBILL_STATUE_MAP = {
  1: "待装车",
  2: "在途",
  3: "已卸车",
  4: "已完成",
  5: "返程中",
  6: "延期"
};
// 运单-是和否字典
export const WAYBILL_YES_OR_NO = [
  { title: "否", key: 1 },
  { title: "是", key: 2 }
];
// 运单  是否入库
export const IS_INSTOCK = [
  { title: "已入库", key: 1 },
  { title: "部分入库", key: 2 },
  { title: "未入库", key: 3 }
];
// 运单  是否已派道
export const IS_LANE_APPOINT = [
  { title: "已派道", key: 1 },
  { title: "未派道", key: 2 }
];
// 运单  是否已锁定
export const IS_LOCK = [
  { title: "已锁定", key: 1 },
  { title: "未锁定", key: 2 }
]; // 运单  是否出库
export const IS_OUT_STOCK = [
  { title: "已出库", key: 1 },
  { title: "部分出库", key: 2 },
  { title: "未出库", key: 3 }
];

export const IS_SWING_HANG = [
  { title: "是", key: 1 },
  { title: "否", key: 2 }
];

export const IS_CANCEL = [
  { title: "否", key: 1 },
  { title: "是", key: 2 }
];

// 订单详情-静态订单信息字典集
export const ORDER_DETAILS_MAP = [
  { goodsType: GOODS_TYPE },
  { crm: ORDER_YES_OR_NO },
  { urgent: ORDER_YES_OR_NO },
  { urgent400: ORDER_YES_OR_NO },
  { isRoadInStorage: ORDER_YES_OR_NO },
  { credit: ORDER_YES_OR_NO },
  { isPurchase: ORDER_YES_OR_NO },
  { isOutstock: IS_OUT_STOCK },
  { businessClass: BUSINESS_CLASS },
  { status: ORDER_STATUE_LIST },
  { isDel: ORDER_YES_OR_NO },
  { urgent: ORDER_YES_OR_NO },
  { isLock: ORDER_YES_OR_NO },
  { isInStorage: ORDER_YES_OR_NO },
  { state: WAYBILL_STATUE_LIST },
  { lockStatus: ORDER_YES_OR_NO },
  { manualDeduction: YES_OR_NO_LIST },
  { generateWaybill: YES_OR_NO_LIST },
  { businessType: BUSINESS_TYPE }
];
// 运单详情-静态订单信息字典集
export const WAYBILL_DETAILS_MAP = [
  // 业务类型
  { businessType: BUSINESS_TYPE },
  // 是否入库
  { isInstock: IS_INSTOCK },
  // 是否已派遣
  { isLaneAppoint: IS_LANE_APPOINT },
  // 是否已锁定
  { isLock: IS_LOCK },
  // 是否已出库
  { isOutstock: IS_OUT_STOCK },
  // 运单状态
  { status: WAYBILL_STATUE_LIST },
  { isSwingHang: IS_SWING_HANG },
  { printPowerAttorney: IS_SWING_HANG },
  { generatePowerAttorney: IS_SWING_HANG },
  // 是否作废
  { isCancel: IS_CANCEL }
];

// 低电量行驶状态
export const LOW_BATTERY_DIRVE_STATUS = {
  1: '重驶',
  2: '空驶',
  3: '停车'
};

// 首页英文描述
export const descText = "USER MANAGEMENT PLATFOR";

// 选择企业描述
export const labelText = "请选择一个企业";

export const ENTERPRISE_INDUSTRY_TYPE_MAP = [
  { title: "城配", key: 1 },
  { title: "危化", key: 2 },
  { title: "冷链", key: 3 },
  { title: "渣土", key: 4 },
  { title: "商砼", key: 5 },
  { title: "轿运", key: 6 },
  { title: "快递快运", key: 7 },
  { title: "其他", key: 8 }
];

// 账号类型
export const ACCOUNT_TYPE_MAP = {
  phoneCode: 1,
  password: 2,
  email: 3,
  wechat: 4,
  user: 5,
  oa: 6
}

// 用户类型
export const USER_TYPE_MAP = {
  internal: '1',
  outer: '2'
}

// 平台类型
export const CLIENT_TYPE_MAP = {
  ios: 1,
  android: 2,
  weChat: 3,
  web: 4,
  pc: 5,
  iot: 9
}

// 认证类型 1注册,2登录,3注册并登录,4修改密码,5重置密码/忘记密码 ,6.注销 ,7.修改手机号,8.修改用户名,9修改邮箱
export const CERTIFICATION_TYPE_MAP = {
  register: 1,
  login: 2,
  registerLogin: 3,
  modifyPwd: 4, // 修改密码
  resetForgetPwd: 5, // 重置密码/忘记密码
  logout: 6, // 注销
  modifyPhone: 7, // 修改手机号
  modifyUserName: 8, // 修改用户名
  modifyEmail: 9 // 修改邮箱
}

// 邀请类型:1=手机号、2=手机号+邮箱、3=手机号+用户名、4=手机号+邮箱+用户名
export const INVITATION_TYPE_MAP = {
  phone: 1,
  phoneEmail: 2,
  phoneUserName: 3,
  phoneUserNameEmail: 4
}

// 登录类型
export const LOGIN_TYPE_MAP = {
  code: 1,
  password: 2,
  ldap: 3,
  oa: 4
}

// 登录方式
export const LOGIN_METHOD_MAP = {
  phone: 1,
  email: 2,
  account: 3
}

// 短信模板类型 (1=长征汽车 2=如果科技,默认为2)
export const SMS_TYPE = {
  cz: 1,
  if: 2
}

// 轨迹车辆状态
export const STATE_TRACE = [
  {title: "行车", state: 1},
  {title: "未熄火停车", state: 2},
  {title: "熄火停车", state: 3}
]

// 需要突破白名单的接口列表
export const EDC_FLAG_LIST = [
  'uc/api/logout',
  'uc/api/resetPassword',
  'uc/api/loginNew',
  'uc/api/accessTokenNew',
  'uc/api/code/getsmsNew',
  'uc/api/code/getSmsCertificateNew',
  'uc/api/code/verificationCode',
  'uc/api/code/verificationCode',
  'uc/api/code/getSmsUpdateUser',
  'uc/api/code/verificationCode',
  'uc/api/code/getCodeByEmail',
  'uc/api/user/detail',
  'uc/api/user/updateUserEmail',
  'uc/api/user/updateUserPhone',
  'uc/api/user/updateUserAccount',
  'uc/api/user/updateUserName',
  'uc/api/app/client/query',
  'uc/api/app/client/update',
  'uc/api/app/client/delete',
  'uc/api/user/addUserMulti',
  '/uc/api/account/userClient/add'
]